package com.otitan.la.forest.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.otitan.la.forest.system.entity.OrganizationEntity;
import com.otitan.la.forest.system.vo.OrganizationStationVO;
import com.otitan.la.forest.system.vo.OrganizationTreeVO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 组织机构表
 * 
 * @author jiacs
 * @email xxx
 * @date 2020-09-15 10:34:19
 */
@Mapper
public interface OrganizationMapper extends BaseMapper<OrganizationEntity> {

    List<OrganizationTreeVO> findOrgTree();
    List<OrganizationStationVO> findOrgMap();

    /**
     * 根据用户ID获取组织机构信息
     * @author jiachangsen
     * @param [id]
     * @return java.util.List<com.otitan.la.forest.system.entity.OrganizationEntity>
     * @exception
     * @date 2020/09/30 21:33
     */
    List<OrganizationEntity> findOrgInfoByUserId(String userId);
}
